<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            height: 100vh;
            display: grid;
            place-items: center;
        }
        .card{
            width: 393.3px;
            height: 188px;
            position: relative;
            overflow: hidden
        }
        .card::after{
            content: "";
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: inherit;
            transition: all 1s;
            background-color: rgba(0, 0, 0, .5);
            z-index: 1;
        }
        .card img{
            width: 100%;
            height: 100%;
            position: relative;
        }
        .card p{
            margin: 0;
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            padding: 10px 0;
            position: absolute;
            bottom: 0;
            left: 0;
            background-color: rgba(0, 0, 0, .5);
            text-align: center;
            color:white;
            transform: translate(0,80%);
            transition: all 1s;
            z-index: 9;
        }
        
        .card p > span{
            display: block;
            height: inherit;
            transition: all 1s;
        }
        
        .card:hover p{
            transform: translate(0,0);
            padding: 0;
        }

        .card:hover p > span{
            transform: translate(0,50%);
        }

        .card:hover::after{
            width: 100%;
        }
    </style>
</head>
<body>
    <div class="card">
        <img src="https://images.unsplash.com/photo-1556807044-eaf2e0eecb6d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80">
        <p>
            <span>
                New York City, NY
            </span>
        </p>
    </div>
</body>
</html>